package com.dailyblue.java.spring.cloud.example.customer.basic.controller;

import com.dailyblue.java.spring.cloud.example.customer.basic.service.CustomerService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/customer")
public class CustomerController {
    @Resource
    private CustomerService customerService;

    @GetMapping("/a")
    public String a() {
        return customerService.a();
    }

    @GetMapping("/b")
    public String b() {
        return customerService.b();
    }

    @GetMapping("/c")
    public String c() {
        return customerService.c();
    }

    @GetMapping("/d")
    public String d() {
        return customerService.d();
    }
}
